package com.ruoyi.travel.service;

import com.ruoyi.travel.domain.vo.WechatUserVo;
import com.ruoyi.travel.domain.bo.WechatUserBo;
import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 租户Service接口
 *
 * @author ruoyi
 * @date 2024-02-07
 */
public interface IWechatUserService {

    /**
     * 查询租户
     */
    WechatUserVo queryById(Long id);

    /**
     * 查询租户列表
     */
    TableDataInfo<WechatUserVo> queryPageList(WechatUserBo bo, PageQuery pageQuery);

    /**
     * 查询租户列表
     */
    List<WechatUserVo> queryList(WechatUserBo bo);

    /**
     * 修改租户
     */
    Boolean insertByBo(WechatUserBo bo);

    /**
     * 修改租户
     */
    Boolean updateByBo(WechatUserBo bo);

    /**
     * 校验并批量删除租户信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
